import request from '@/utils/request'

// 查询查看管理列表
export function listCommon(query) {
  return request({
    url: '/teacher/common/list',
    method: 'get',
    params: query
  })
}

// 查询查看管理详细
export function getCommon(recordid) {
  return request({
    url: '/teacher/common/' + recordid,
    method: 'get'
  })
}

// 新增查看管理
export function addCommon(data) {
  return request({
    url: '/teacher/common',
    method: 'post',
    data: data
  })
}

// 修改查看管理
export function updateCommon(data) {
  return request({
    url: '/teacher/common',
    method: 'put',
    data: data
  })
}

// 删除查看管理
export function delCommon(recordid) {
  return request({
    url: '/teacher/common/' + recordid,
    method: 'delete'
  })
}

// 导出查看管理
export function exportCommon(query) {
  return request({
    url: '/teacher/common/export',
    method: 'get',
    params: query
  })
}